package com.jeomo.common.quartz.provider.web.request;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * <h3>excel-util</h3>
 * <p>定时任务</p>
 *
 * @author : 崔贺
 * @date : 2020-12-07 14:36
 **/
public class JobRequest {
    /**
     * 需要定时执行的类，例如：com.common.quartz.jobs.HelloJob
     */
    private String jobClassName;
    /**
     * 任务名称
     */
    private String jobName;
    /**
     * 分组
     */
    private String jobGroupName;
    /**
     * cron表达式
     */
    private String cronExpression;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date jobDate;
    /**
     * 是否立即执行
     */
    private Boolean immediately;

    public Boolean getImmediately() {
        return immediately;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public void setImmediately(Boolean immediately) {
        this.immediately = immediately;
    }

    public Date getJobDate() {
        return jobDate;
    }

    public void setJobDate(Date jobDate) {
        this.jobDate = jobDate;
    }

    public String getJobClassName() {
        return jobClassName;
    }

    public void setJobClassName(String jobClassName) {
        this.jobClassName = jobClassName;
    }

    public String getJobGroupName() {
        return jobGroupName;
    }

    public void setJobGroupName(String jobGroupName) {
        this.jobGroupName = jobGroupName;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }
}
